package com.kurumi.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.kurumi.query.MedicalRecordQualityControlQuery;

public interface MedicalRecordQualityControlMapper {
	
	/**
	 * 获取指控病案信息依据visitGuid
	 * @return
	 */
	List<Map<String,Object>> getQualityControlMedicalRecordByVisitGuid(String visitGuid);
	
	/**
	 * 获取质控缺陷
	 * @param params
	 * @return
	 */
	List<Map<String,Object>> getQualityControlImperfection(MedicalRecordQualityControlQuery params);
	
	/**
	 * 获取质控病案
	 * @param params
	 * @return
	 */
	List<Map<String,Object>> getQualityControlRecord(MedicalRecordQualityControlQuery params);
	
	List<Integer> getIdsOfMedicalRecordQualityControl(@Param("visitGuid")String visitGuid);
	
	int deleteQualityControlItemByQualityControlId(Integer qualityControlId);
	
	int deleteQualityControlByQualityControlId(Integer qualityControlId);
	/**
	 * 依据visitGuid和三级指控编号获取三级指控Ids
	 * @param visitGuid
	 * @param thirdLevelCode
	 * @return
	 */
	List<Integer> getQualityControlItemIds(@Param("visitGuid")String visitGuid,@Param("thirdLevelCode")String thirdLevelCode);
	
}
